angular.module(moduleName +'.controllers')
  .controller('CustomerInfoCtrl',function(CustomerListService){
    var customerInfo = this;
    //tab
    customerInfo.tab = [{
      'name':'基本信息',
      'flag':true
    },{
      'name':'计划书',
      'msg':'3',
      'flag':false
    },{
      'name':'保单',
      'flag':false
    },{
      'name':'日程计划',
      'flag':false
    }];
    customerInfo.buttons = [{
      router:'#/tab/home',
      text:'跟进',
      src:'pages/customer/customerInfo/assets/footer_icon1.png'
    }, {
      router:'#/productList',
      text:'投保',
      src:'pages/customer/customerInfo/assets/footer_icon2.png'
    }, {
      router:'#/calendar',
      text:'行事历',
      src:'pages/customer/customerInfo/assets/footer_icon3.png'
    }, {
      router:'#/suggestList',
      text:'计划书',
      src:'pages/customer/customerInfo/assets/footer_icon4.png'
    }];
    customerInfo.scheduleData = CustomerListService.customerList();
    //默认显示详情页
    console.log(customerInfo.name);
  });
